package com.xuhao.examai.question.application.dto;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Min;
import java.time.LocalDateTime;

@Data
public class QuestionDTO {

	private Long id;

	@NotNull(message = "考试ID不能为空")
	private Long examId;

	@NotBlank(message = "题目类型不能为空")
	private String questionType;

	@NotBlank(message = "题目内容不能为空")
	private String content;

	private String options;

	private String correctAnswer;

	@NotNull(message = "题目分值不能为空")
	@Min(value = 1, message = "题目分值必须大于0")
	private Integer score;

	private String knowledgePoint;

	private String difficulty;

	private LocalDateTime createdAt;

	private LocalDateTime updatedAt;
}